package com.iiapk.remind.server.domain.mail;

import java.util.Map;

/**
 * 专业生产模板邮件
 * 
 * @author Atomic
 */
public class TemplateMailFactory {

	//邮件模板们
	private Map<String, MailTemplateDefinition> templateMailContext;

	public MailTemplateDefinition create(String mailId) {

		for (String key : templateMailContext.keySet()) {
			System.out.println(key + "[" + templateMailContext.get(key) + "]");
		}
		if (templateMailContext.containsKey(mailId)) {
			return templateMailContext.get(mailId);
		}
		return null;
	}

	public void setTemplateMailContext(Map<String, MailTemplateDefinition> templateMailContext) {
		this.templateMailContext = templateMailContext;
	}
}
